import request from "@/utils/request";

export function getAllTeacher(params) {
    return request({
        url: "/admin/getAllTeacher",
        method: "get",
        params
    });
}

export function addTeacherApi(data) {
    return request({
        url:'/admin/addTeacher',
        method:"post",
        data
    })
}

export function deleteTeacherApi(params) {
    return request({
        url: "/admin/deleteTeacher",
        method:"delete",
        params
    })
}

export function getAllStudentApi(params) {
    return request({
        url: "/admin/getAllStudent",
        method: "get",
        params
    });
}

export function addStudentApi(data) {
    return request({
        url:'/admin/addStudent',
        method:"post",
        data
    })
}

export function deleteStudentApi(params) {
    return request({
        url: "/admin/deleteStudent",
        method:"delete",
        params
    })
}

export function resetPasswordApi(params) {
    return request({
        url: "/admin/resetPassword",
        method:"put",
        params
    })
}

